package com.unicorn.util.common;

import com.unicorn.base.VinaceConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by user on 2016/12/4.
 */
@Component
public class BaseComponent {


    private VinaceConfig vinaceConfig;

    public VinaceConfig getVinaceConfig() {
        if(vinaceConfig==null){
            vinaceConfig=new VinaceConfig();
        }
        return vinaceConfig;
    }

    public void setVinaceConfig(VinaceConfig vinaceConfig) {
        this.vinaceConfig = vinaceConfig;
    }
}
